using System;
using System.Web.Mvc;

namespace RPX.Web.MVC.Extensions
{
    public static class RPXHtmlExtensions
    {
        public static string RPXTokenUrl(this HtmlHelper htmlHelper, string url)
        {
#if DEBUG
            return "http://localhost:61510/RPXAuthentication/HandleResponse?ReturnUrl=" + url;
#else
            return "http://www.descontoemgrupo.com/RPXAuthentication/HandleResponse?ReturnUrl=" + url;
#endif

        }

        public static string RPXRealm(this HtmlHelper htmlHelper)
        {
            //throw new Exception("Once you have set your realm value, this exception can then be removed.");
            //TODO: Get the realm value from your RPX account configuration - https://rpxnow.com/account
            return "descontoemgrupo.rpxnow.com";            
        }
    }
}